<script setup lang="ts"></script>

<template>
  <el-main class="">
    <el-scrollbar>
      <router-view v-slot="{ Component }">
        <transition name="fade-transform" mode="out-in">
          <Component :is="Component" />
        </transition>
      </router-view>
    </el-scrollbar>
  </el-main>
</template>

<style scoped lang="scss">
  .fade-transform-leave-active,
  .fade-transform-enter-active {
    transition: all 0.5s;
  }

  .fade-transform-enter {
    opacity: 0;
    transform: translateX(-30px);
  }

  .fade-transform-leave-to {
    opacity: 0;
    transform: translateX(30px);
  }
</style>
